home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / Log Library 1.01 / LogLib ƒ / log.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-15  |  920 b   |  49 lines  |  [TEXT/KAHL]

  1. /*
  2.     log.h        Header file for log.c
  3.     
  4.     
  5.         ©1994 by Dave Nebinger (dnebing@andy.bgsu.edu)
  6.         All Rights Reserved.
  7.         
  8.         Feel free to use this where ever you wish, just drop me some email
  9.         stating what you are doing with it.
  10. */
  11.  
  12. #pragma once
  13.  
  14. #ifndef __H_log__
  15. #define __H_log__
  16.  
  17. /*
  18.     Apple includes
  19. */
  20. #include <Script.h>    /* for smSystemScript */
  21. #include <Folders.h>
  22.  
  23. /*
  24.     ANSI-small includes
  25.     
  26.     These allow for the use of the '...' and also some of the string and printing
  27.     functions are used.
  28. */
  29. #include <stdio.h>
  30. #include <string.h>
  31. #include <stdarg.h>
  32.  
  33. /*
  34.     First a constant
  35. */
  36. #define kNewLine 0x0d /* use this constant instead of \n. */
  37.  
  38.  
  39. /*
  40.     Now for those nasty prototypes...
  41. */
  42. Boolean InitLog(Str255 fold,short* vref,long* pid,long* fid);
  43. short OpenLog(Str255 name,short vref,long did);
  44. Boolean Log(short,const char* fmt,...);
  45. Boolean LogTime(short,const char* fmt,...);
  46. void CloseLog(short);
  47.  
  48. #endif /* __H_log__ */
  49.